import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
// import store from "@/store";

import Antd, { message } from "ant-design-vue";
import Api from "@/http/api";
import Http from "@/http/http";
import { constants, Session } from "@/store/Session";
import request from "@/http/request";

// import "./login";

//样式信息
import "ant-design-vue/dist/antd.less";
import "./assets/css/style.scss";

import VueUeditorWrap from "vue-ueditor-wrap";


const app = createApp(App);

// app.config.productionTip = false;

// 全局组件:暂无数据
import componentsNoData from "@/components/NoData.vue";
import componentsLoading from "@/components/loading.vue";

app.component("no-data", componentsNoData);
app.component("loading", componentsLoading);
//filter过滤器加载
// import filters from '@/utils/utils'
// app.config.globalProperties.$filters = filters

app.config.globalProperties.$api = Api;
app.config.globalProperties.$http = Http;
app.config.globalProperties.$requests = request;
app.config.globalProperties.$Session = Session;
app.config.globalProperties.$constants = constants;

app.use(router).use(VueUeditorWrap).use(Antd).mount("#app");
